package com.heima.anli.text;

import com.heima.anli.AiliApp;
import com.heima.green.scan.GreenImageScan;
import com.heima.green.scan.GreenTextScan;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AiliApp.class)
public class text {
    @Autowired
    private GreenImageScan greenImageScan;
    @Autowired
     private  GreenTextScan  greenTextScan;


    @Test
    public void text1() throws Exception {
        InputStream inputStream = new FileInputStream("D:\\WeGameApps\\Desktop\\111\\514FB26932114185B35ABCEC17E4DF89.jpg");
        greenImageScan.imageScan(inputStream);
    }

    @Test
    public void text() throws Exception {
        greenTextScan.greeTextScan("李泽言稀释冰毒");
    }

}
